class Feature < ActiveRecord::Base

  has_many :deliverables

  def Feature.get(feature_name)
    Feature.find_by_name(feature_name)|| Feature.new(:name => feature_name) 
  end

  def Feature.name_starts_with(feature_name)
    Feature.find(:all, :order => "name asc",
                 :conditions => ['name LIKE ?', feature_name<<"%"])
  end

end
